public class Hello_Java {
    public static void main(String[] args) {
        String s1 = "hello java";

        String s2 = "hello java";

        if (s1.equals(s2)){


            String res01 = s1.replace(" ", "");

            System.out.println(res01);

            String ii= res01.replace("java", "world");
            System.out.println(ii);




        }
